/**
 * 
 */
var time=new Date();
var year=time.getFullYear();
var month=time.getMonth()+1; 
var day=time.getDate();
//alert(year+'/'+month+'/'+day);
var timeNode=document.getElementById("timeShow");
timeNode.innerHTML="截止目前："+year+'/'+month+'/'+day;
var imgs=[["Resource/Image/peopleChanged.png"],["Resource/Image/jianchaChanged.png"],["Resource/Image/jianyanChanged.png"]];
var reImgs=[["Resource/Image/people.png"],["Resource/Image/jiancha.png"],["Resource/Image/jianyan.png"]];
function change1(obj){
	obj.src=imgs[0];
}
function change2(obj){
	obj.src=imgs[1];
}
function change3(obj){
	obj.src=imgs[2];
}
function reset1(obj){
	obj.src=reImgs[0];
}
function reset2(obj){
	obj.src=reImgs[1];
}
function reset3(obj){
	obj.src=reImgs[2];
}
window.onload=function(){
    var root=document.getElementById("selectDate");
    var activeList=root.childNodes;
    for(var i=0;i<activeList.length;i++)
    {
        change(activeList[i],i);
    }
} 
// JS实现选项卡切换
function change(obj,i){
    var root=document.getElementById("selectDate");
    var activeList=root.childNodes;
    var chart=new Array();
    chart[0]=document.getElementById("main");
    chart[1]=document.getElementById("main2");
    chart[2]=document.getElementById("main3");
    obj.onmouseover=function(){
        for(var k=0;k<activeList.length;k++)
        {
            activeList[k].className="hide";
            chart[k].className="unShow";
        }
        obj.className="active"; 
        chart[i].className="show";
    }
}